attrib pom.xml -R
copy snap_pom.xml pom.xml
p4 edit pom.xml
p4 submit -d "reset back to snapshot" pom.xml

call mvn release:clean

if "%1" == "only" goto end

call mvn -X -e release:prepare 

:end